package day8homework;

public class PersonTest {
	public static void main(String[] args) {
		Person person1 = new Student();
		person1.eat();
		person1.work();
		person1.sleep();
		System.out.println("==================");
		Person person2 = new Worker();
		person2.eat();
		person2.work();
		System.out.println("==================");
		StudentLeader studentLeader = new StudentLeader();
		studentLeader.eat();
		studentLeader.work();
		studentLeader.sleep();
		System.out.println(studentLeader);
		System.out.println("==================");
		Student student = new StudentLeader();
		student.setName("fagg");
		System.out.println(student.getName());
		System.out.println("==================");
		Student student2 = new Student("xian", "男", 20, "china", "振华中学", 200055);
		System.out.println(student2);
	}
}
